Skip to content

fix(UI): remove commit_id in tree/blob table#1338

Merged
genedna merged 1 commit into
gitmono-dev:mainfrom
benjamin-747:main
Aug 18, 2025
Merged

fix(UI): remove commit_id in tree/blob table#1338
genedna merged 1 commit into
gitmono-dev:mainfrom
benjamin-747:main

Conversation

@benjamin-747

Copy link
Copy Markdown
Collaborator

No description provided.

@vercel

vercel Bot commented Aug 15, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mega Ready Preview Comment Aug 15, 2025 8:27am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the commit_id field from the git_tree and git_blob database tables and their associated model structs, along with implementing a new approach for tracking tree-commit relationships through commit history traversal.

  • Removes commit_id column from database models and creates a migration to drop these columns
  • Updates the get_tree_relate_commit method to use commit history traversal instead of direct database lookups
  • Refactors caching mechanism to use Arc<Mutex<GitObjectCache>> for thread-safe access

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
mercury/src/internal/model/tree.rs Removes commit_id field from Tree to git_tree::Model conversion
mercury/src/internal/model/blob.rs Removes commit_id field from Blob to git_blob::Model conversion
jupiter/src/migration/mod.rs Adds new migration module for removing commit_id columns
jupiter/src/migration/m20250815_075653_remove_commit_id.rs Database migration to drop commit_id columns from git_blob and git_tree tables
jupiter/callisto/src/git_tree.rs Removes commit_id field from git_tree Model struct
jupiter/callisto/src/git_blob.rs Removes commit_id field from git_blob Model struct
ceres/src/api_service/mono_api_service.rs Updates get_tree_relate_commit signature and implementation
ceres/src/api_service/mod.rs Updates trait signature and implements thread-safe caching with Arc
ceres/src/api_service/import_api_service.rs Implements new commit history traversal logic to replace database-based commit_id lookups

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread jupiter/src/migration/m20250815_075653_remove_commit_id.rs
Comment thread ceres/src/api_service/import_api_service.rs Outdated
Comment thread ceres/src/api_service/import_api_service.rs Outdated
Comment thread ceres/src/api_service/import_api_service.rs Outdated
Comment thread ceres/src/api_service/import_api_service.rs Outdated
@genedna
genedna added this pull request to the merge queue Aug 18, 2025
Merged via the queue into gitmono-dev:main with commit a015d94 Aug 18, 2025
49 of 60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants